Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Creating and Disposing of Time Bases


SetTimeBaseMasterTimeBase

You can use the SetTimeBaseMasterTimeBase function to assign a master time base to a time base. A time base derives its time from either a clock component or another time base. Do not use this function to assign a master time base to a movie's time base.

pascal void SetTimeBaseMasterTimeBase (TimeBase slave, 
                                       TimeBase master, 
                                    const TimeRecord *slaveZero); 
slave
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
master
Specifies the master time base to be assigned to this time base. Your application obtains this time base identifier from the NewTimeBase function.
slaveZero
Contains a pointer to the time, in the time scale of the master time base, that corresponds to a 0 time value for the slave time scale. This parameter allows you to set an offset between the time base and the master time base. Set this parameter to nil if there is no offset.
ERROR CODES
None

SEE ALSO
You can use the GetTimeBaseMasterTimeBase function, which is described in the next section, to determine the master time base that is assigned to a time base.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996